<?php


namespace App\HttpController;


use EasySwoole\Http\AbstractInterface\AbstractRouter;
use FastRoute\RouteCollector;

class Router extends AbstractRouter
{
    function initialize(RouteCollector $routeCollector)
    {
        $this->parseParams(Router::PARSE_PARAMS_IN_GET); // 获取 url 中的动态变量{***}

        //登陆 - 登陆前查询组织
        $routeCollector->post('/open/login/selectBiz', '/Open/Login/selectBiz');
        //登陆 - 选择组织登陆
        $routeCollector->post('/open/login/handle', '/Open/Login/handle');
        //登陆 - 退出
        $routeCollector->post('/open/login/exit', '/Open/Login/exit');


        //店务 - 预约列表
        $routeCollector->post('/admin/customerCenter/cart', '/Admin/Cart/list');
        //店务 - 客户列表
        $routeCollector->post('/admin/customerCenter/customer', '/Admin/Customer/list');
        $routeCollector->post('/admin/customer/view', '/Admin/Customer/view');
        $routeCollector->post('/admin/customerCart/list', '/Admin/CustomerCart/list');

    }
}